package com.xtgg.main;

import com.xtgg.R;
import com.xtgg.manager.BaseActivity;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.TextView;

@SuppressLint("SetJavaScriptEnabled")
public class WebviewActivity extends BaseActivity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_webview);
		
		((TextView) findViewById(R.id.center)).setText(getIntent().getStringExtra("title"));
		
		final WebView mWebView = (WebView) findViewById(R.id.webview);       
        WebSettings webSettings = mWebView.getSettings();       
        webSettings.setJavaScriptEnabled(true);       
        mWebView.loadUrl(getIntent().getStringExtra("url"));  
        
        findViewById(R.id.left).setOnClickListener(new OnClickListener()
        {
			@Override
			public void onClick(View arg0) {
				finish();
			}
        });
	}
}
